package com.cqie.tes.controller;


import com.cqie.tes.comm.TR;
import com.cqie.tes.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/menu")
@CrossOrigin
public class MenuController {

    @Autowired
    MenuService menuService;

    @GetMapping("/menu")
    public TR menu(){
        return menuService.menu();
    }
}
